import request from '@/utils/request'

// 查询用户详情-充值记录-新增列表
export function listRechargeRecords(query) {
  return request({
    url: '/boss/rechargeRecords/list',
    method: 'get',
    params: query
  })
}

// 查询用户详情-充值记录-新增详细
export function getRechargeRecords(rechargeId) {
  return request({
    url: '/boss/rechargeRecords/' + rechargeId,
    method: 'get'
  })
}

// 新增用户详情-充值记录-新增
export function addRechargeRecords(data) {
  return request({
    url: '/boss/rechargeRecords',
    method: 'post',
    data: data
  })
}

// 修改用户详情-充值记录-新增
export function updateRechargeRecords(data) {
  return request({
    url: '/boss/rechargeRecords',
    method: 'put',
    data: data
  })
}

// 删除用户详情-充值记录-新增
export function delRechargeRecords(rechargeId) {
  return request({
    url: '/boss/rechargeRecords/' + rechargeId,
    method: 'delete'
  })
}
